/* 
 *  Copyright (c) 2011—2013 Panguso.com. All rights reserved. 
 *  File Name:  propertiesReader.java                                      
 *  File Contents Outline :  属性读取器
 *  File  Create Date:   2012年7月30日
 *  File Version#: Revision#: #1                  
 *  File  Latest Modify Date : 2013年1月16日
 *  File Author :  bachuan@panguso.com
 */
package globalparameter;

import java.util.HashMap;

public  class propertiesReader {
    String dbConnection="10.10.192.93";
String db_keySpace="processMining";
String db_columnFamily_model="processModel";
String db_columnFamily_annotation="processAnnotation";
String db_columnFamily_xes="xes";
String db_columnFamily_logBody="logBody";
String db_columnFamily_logHead="logHead";
String db_columnFamily_logTokenizer="logTokenizer";
String db_columnFamily_product="product";
String db_columnFamily_version="logHeadVersion";
String db_columnFamily_businessPattern="businessPattern";
String db_columnFamily_account="account";
String db_columnFamily_accountGroup="accountGroup";
String db_columnFamily_cleanRule ="cleanRule";
String db_columnFamily_noiseRule="noiseRule";
String db_columnFamily_activityAbstractRule="activityAbstractRule";
String db_columnFamily_traceFilterRule="traceFilterRule";
String db_columnFamily_fullPattern="fullPattern";
String db_columnFamily_treeFile="treeFile";
String db_columnFamily_xesNameTable="xesNameTable";

String xml_head="<?xml version=\"1.0\"encoding=\"UTF-8\"?>";
String hadoopnodes="176";
public HashMap<String,String> configurationstring = null;
   public  propertiesReader(){
	   configurationstring = new HashMap<String,String>();
       configurationstring.put("xml_head", xml_head);     
       configurationstring.put("dbConnection", dbConnection);
          configurationstring.put("db_keySpace", db_keySpace);
          configurationstring.put("db_columnFamily_model", db_columnFamily_model);
          configurationstring.put("db_columnFamily_annotation", db_columnFamily_annotation);
                    configurationstring.put("db_columnFamily_xes", db_columnFamily_xes);
          configurationstring.put("db_columnFamily_logBody", db_columnFamily_logBody);

                    configurationstring.put("db_columnFamily_logHead", db_columnFamily_logHead);
          configurationstring.put("db_columnFamily_logTokenizer", db_columnFamily_logTokenizer);
            configurationstring.put("db_columnFamily_product", db_columnFamily_product);
      configurationstring.put("db_columnFamily_version", db_columnFamily_version);
          configurationstring.put("db_columnFamily_businessPattern", db_columnFamily_businessPattern);
           configurationstring.put("db_columnFamily_account", db_columnFamily_account);
           configurationstring.put("db_columnFamily_accountGroup", db_columnFamily_accountGroup); 
           configurationstring.put("db_columnFamily_cleanRule", db_columnFamily_cleanRule);
             configurationstring.put("db_columnFamily_noiseRule", db_columnFamily_noiseRule);
        configurationstring.put("db_columnFamily_activityAbstractRule", db_columnFamily_activityAbstractRule);
        configurationstring.put("db_columnFamily_traceFilterRule", db_columnFamily_traceFilterRule);
          configurationstring.put("db_columnFamily_fullPattern", db_columnFamily_fullPattern);
          configurationstring.put("db_columnFamily_treeFile", db_columnFamily_treeFile);
          configurationstring.put("db_columnFamily_xesNameTable", db_columnFamily_xesNameTable);
          configurationstring.put("hadoopnodes", hadoopnodes);                             
   }

    public String getProperties(String key ) {
        String value ;
       value = configurationstring.get(key);
        return value;
        
    }
}
